package com.sanqi.work.domain;

import java.math.BigDecimal;
import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sanqi.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sanqi.common.core.domain.BaseEntity;

/**
 * 工作计件阶梯对象 work_step_level
 * 
 * @author duany
 * @date 2025-10-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("work_step_level")
public class WorkStepLevel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /** 入职时间级别 */
    @Excel(name = "入职时间级别")
    @TableField(value="time_level")
    private String timeLevel;

    /** 类型 */
    @Excel(name = "类型")
    @TableField(value="level_type")
    private String levelType;

    /** 系数 */
    @Excel(name = "系数")
    @TableField(value="level_ratio")
    private BigDecimal levelRatio;

    /** 排序 */
    @Excel(name = "排序")
    @TableField(value="level_sequence")
    private Long levelSequence;
    
    /** 阶梯计价配置集合 */
    @TableField(exist = false)
    private List<WorkStepLevelPrice> priceList;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setTimeLevel(String timeLevel) 
    {
        this.timeLevel = timeLevel;
    }

    public String getTimeLevel() 
    {
        return timeLevel;
    }

    public void setLevelType(String levelType) 
    {
        this.levelType = levelType;
    }

    public String getLevelType() 
    {
        return levelType;
    }

    public void setLevelRatio(BigDecimal levelRatio) 
    {
        this.levelRatio = levelRatio;
    }

    public BigDecimal getLevelRatio() 
    {
        return levelRatio;
    }

    public void setLevelSequence(Long levelSequence) 
    {
        this.levelSequence = levelSequence;
    }

    public Long getLevelSequence() 
    {
        return levelSequence;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("timeLevel", getTimeLevel())
            .append("levelType", getLevelType())
            .append("levelRatio", getLevelRatio())
            .append("levelSequence", getLevelSequence())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .toString();
    }
}
